import request from '@/utils/request'

// 查询工单日志列表
export function listWorkOrderLog(query) {
  return request({
    url: '/workorder/workOrderLog/list',
    method: 'get',
    params: query
  })
}

// 查询工单日志详细
export function getWorkOrderLog(id) {
  return request({
    url: '/workorder/workOrderLog/' + id,
    method: 'get'
  })
}

// 新增工单日志
export function addWorkOrderLog(data) {
  return request({
    url: '/workorder/workOrderLog',
    method: 'post',
    data: data
  })
}

// 修改工单日志
export function updateWorkOrderLog(data) {
  return request({
    url: '/workorder/workOrderLog',
    method: 'put',
    data: data
  })
}

// 删除工单日志
export function delWorkOrderLog(id) {
  return request({
    url: '/workorder/workOrderLog/' + id,
    method: 'delete'
  })
}

// 导出工单日志
export function exportWorkOrderLog(query) {
  return request({
    url: '/workorder/workOrderLog/export',
    method: 'get',
    params: query
  })
}